//
//  MyScrollView.m
//  Boom
//
//  Created by 云鹏 赵 on 15/3/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MyScrollView.h"

@implementation MyScrollView
- (void)dealloc
{
    [_myScrollView release];
    [_myPageControll release];
    [_array release];
    [_arrayButton release];
    [_dictionary release];
    [_imageView1 release];
    [_imageView2 release];
    [_imageView3 release];
    [_imageView4 release];
    [_imageView5 release];
    [_picArray release];
    [_ZXImageView1 release];
    [_ZXImageView2 release];
    [_ZXImageView3 release];
    [_ZXImageView4 release];
    [_ZXImageView5 release];
    [_ZXImageView6 release];
    [_ZXLable1 release];
    [_ZXLable2 release];
    [_ZXLable3 release];
    [_ZXLable4 release];
    [_ZXLable5 release];
    [_ZXLable6 release];
    [_DTImageView1 release];
    [_DTImageView2 release];
    [_DTImageView3 release];
    [_DTImageView4 release];
    [_DTImageView5 release];
    [_DTImageView6 release];
    [_DTLable1 release];
    [_DTLable2 release];
    [_DTLable3 release];
    [_DTLable4 release];
    [_DTLable5 release];
    [_DTLable6 release];
    [_YYImageView1 release];
    [_YYImageView2 release];
    [_YYImageView3 release];
    [_YYImageView4 release];
    [_YYImageView5 release];
    [_YYImageView6 release];
    [_YYLable1 release];
    [_YYLable2 release];
    [_YYLable3 release];
    [_YYLable4 release];
    [_YYLable5 release];
    [_YYLable6 release];
    [_QGImageView1 release];
    [_QGImageView2 release];
    [_QGImageView3 release];
    [_QGImageView4 release];
    [_QGImageView5 release];
    [_QGImageView6 release];
    [_QGLable1 release];
    [_QGLable2 release];
    [_QGLable3 release];
    [_QGLable4 release];
    [_QGLable5 release];
    [_QGLable6 release];
    [_ZXImageArray release];
    [_DTImageArray release];
    [_YYImageArray release];
    [_QGImageArray release];
    [_rotateView release];
    [_playUrl release];
    [_rotateView release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatScrollView];
    }
    return self;
}

- (void)creatScrollView
{
    self.type = 0;
    
    self.backgroundColor = [UIColor colorWithRed:244 / 255.0 green:244 / 255.0 blue:244 / 255.0 alpha:1];
    // 本scrollview 是竖排滑动列表的scrollview
    self.contentSize = CGSizeMake(self.frame.size.width, 375 * 5);
    
    // 添加横排scrollview
    self.myScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 200)];
    self.myScrollView.delegate = self;
    self.myScrollView.contentSize = CGSizeMake(self.frame.size.width * 6, 200);
    self.myScrollView.pagingEnabled = YES;
    self.myScrollView.showsHorizontalScrollIndicator = NO;
    self.myScrollView.backgroundColor = [UIColor whiteColor];
    self.myScrollView.contentOffset = CGPointMake(375, 0);
    // 添加imageView
    self.imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 375, 200)];
    self.imageView1.backgroundColor = [UIColor whiteColor];
    [self.myScrollView addSubview:self.imageView1];
    [_imageView1 release];
    
    self.imageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(375, 0, 375, 200)];
    self.imageView2.userInteractionEnabled = YES;
    self.imageView2.tag = 2001;
    self.imageView2.backgroundColor = [UIColor whiteColor];
    UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.imageView2 addGestureRecognizer:tap1];
    [self.myScrollView addSubview:self.imageView2];
    [tap1 release];
    [_imageView2 release];
    
    self.imageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(375 * 2, 0, 375, 200)];
    self.imageView3.tag = 2002;
    self.imageView3.backgroundColor = [UIColor whiteColor];
    self.imageView3.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.imageView3 addGestureRecognizer:tap2];
    [self.myScrollView addSubview:self.imageView3];
    [tap2 release];
    [_imageView3 release];
    
    self.imageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(375 * 3, 0, 375, 200)];
    self.imageView4.tag = 2003;
    self.imageView4.backgroundColor = [UIColor whiteColor];
    self.imageView4.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap3 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.imageView4 addGestureRecognizer:tap3];
    [self.myScrollView addSubview:self.imageView4];
    [tap3 release];
    [_imageView4 release];
    
    self.imageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(375 * 4, 0, 375, 200)];
    self.imageView5.tag = 2004;
    self.imageView5.backgroundColor = [UIColor whiteColor];
//    self.imageView5.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap4 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.imageView5 addGestureRecognizer:tap4];
    [self.myScrollView addSubview:self.imageView5];
    [tap4 release];
    [_imageView5 release];
    
    // 添加pagecontrol
    self.myPageControll = [[UIPageControl alloc] initWithFrame:CGRectMake(147.5, 180, 80, 10)];
    self.myPageControll .backgroundColor = [UIColor clearColor];
    self.myPageControll .numberOfPages = 3;
    self.myPageControll .currentPage = self.myScrollView.contentOffset.x / 375 - 1;
    [self addSubview:self.myScrollView];
    [self addSubview:self.myPageControll ];
    [_myScrollView release];
    [_myPageControll release];
    // 给横排scrollview添加定时器
    [NSTimer scheduledTimerWithTimeInterval:6 target:self selector:@selector(changeImage) userInfo:nil repeats:YES];
    
    // 添加lable 上边添加分类button
    UILabel *lableA = [[UILabel alloc] initWithFrame:CGRectMake(0, self.myScrollView.frame.size.height + self.myScrollView.frame.origin.y, self.frame.size.width, 100)];
    lableA.backgroundColor = [UIColor whiteColor];
    [self addSubview:lableA];
    // 最新资讯button
    self.button1 = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button1.tag = 1001;
    self.button1.frame = CGRectMake(27, lableA.frame.origin.y + 20, 60, 60);
    self.button1.backgroundColor = [UIColor whiteColor];
    [self.button1 setTitle:@"but1" forState:UIControlStateNormal];
    [self.button1 addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.button1];

    
    // 电台
    self.button2 = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button2.tag = 1002;
    self.button2.frame = CGRectMake(self.button1.frame.origin.x + self.button1.frame.size.width + 27, self.button1.frame.origin.y, self.button1.frame.size.width, self.button1.frame.size.height);
    self.button2.backgroundColor = [UIColor whiteColor];
    [self.button2 setTitle:@"but2" forState:UIControlStateNormal];
    [self.button2 addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.button2];


    // 音乐
    self.button3 = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button3.tag = 1003;
    self.button3.frame = CGRectMake(self.button2.frame.origin.x + self.button2.frame.size.width + 27, self.button2.frame.origin.y, self.button1.frame.size.width, self.button1.frame.size.height);
    self.button3.backgroundColor = [UIColor whiteColor];
    [self.button3 setTitle:@"but3" forState:UIControlStateNormal];
    [self.button3 addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.button3];


    // 情感生活
    self.button4 = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button4.tag = 1004;
    self.button4.frame = CGRectMake(self.button3.frame.origin.x + self.button3.frame.size.width + 27, self.button3.frame.origin.y, self.button1.frame.size.width, self.button1.frame.size.height);
    self.button4.backgroundColor = [UIColor whiteColor];
    [self.button4 setTitle:@"but4" forState:UIControlStateNormal];
    [self.button4 addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.button4];

    
    [lableA release];

    
    // 添加分类推荐
    UILabel *lableB = [[UILabel alloc] initWithFrame:CGRectMake(0, lableA.frame.origin.y + lableA.frame.size.height + 10, self.frame.size.width, 350)];
    lableB.backgroundColor = [UIColor whiteColor];
    [self addSubview:lableB];
    UILabel *ZXlable = [[UILabel alloc] initWithFrame:CGRectMake(lableB.frame.origin.x + 10, lableB.frame.origin.y + 10, 100, 30)];
    ZXlable.backgroundColor = [UIColor whiteColor];
    ZXlable.text = @"最新资讯";
    [self addSubview:ZXlable];
    [ZXlable release];
    UIButton *buttonB = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonB.tag = 1005;
    buttonB.frame = CGRectMake(315, lableB.frame.origin.y + 10, 50, 30);
    buttonB.backgroundColor = [UIColor whiteColor];
    [buttonB setTitle:@"更多>>" forState:UIControlStateNormal];
    [buttonB setTitleColor:[UIColor colorWithRed:218 / 255.0 green:26 / 255.0 blue:24 / 255.0 alpha:1] forState:UIControlStateNormal];
    buttonB.titleLabel.font = [UIFont systemFontOfSize:15];
    [buttonB addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:buttonB];

    // 分类推荐上的imageview tap事件
    self.ZXImageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, lableB.frame.origin.y + 50, 98, 100)];
    self.ZXImageView1.userInteractionEnabled = YES;
    self.ZXImageView1.tag = 10001;
    UITapGestureRecognizer * tapZX1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView1 addGestureRecognizer:tapZX1];
    self.ZXImageView1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView1];
    self.ZXLable1 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView1.frame.origin.x, self.ZXImageView1.frame.origin.y + self.ZXImageView1.frame.size.height, self.ZXImageView1.frame.size.width, 30)];
    self.ZXLable1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable1];
    [tapZX1 release];
    [_ZXImageView1 release];
    [_ZXLable1 release];
    
    self.ZXImageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20, lableB.frame.origin.y + 50, 98, 100)];
    self.ZXImageView2.tag = 10002;
    self.ZXImageView2.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapZX2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView2 addGestureRecognizer:tapZX2];
    self.ZXImageView2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView2];
    self.ZXLable2 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView2.frame.origin.x, self.ZXImageView2.frame.origin.y + self.ZXImageView2.frame.size.height, self.ZXImageView2.frame.size.width, 30)];
    self.ZXLable2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable2];
    [tapZX2 release];
    [_ZXImageView2 release];
    [_ZXLable2 release];
    
    self.ZXImageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20 + 98 + 20, lableB.frame.origin.y + 50, 98, 100)];
    self.ZXImageView3.tag = 10003;
    self.ZXImageView3.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapZX3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView3 addGestureRecognizer:tapZX3];
    self.ZXImageView3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView3];
    self.ZXLable3 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView3.frame.origin.x, self.ZXImageView3.frame.origin.y + self.ZXImageView3.frame.size.height, self.ZXImageView3.frame.size.width, 30)];
    self.ZXLable3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable3];
    [tapZX3 release];
    [_ZXImageView3 release];
    [_ZXLable3 release];
    
    self.ZXImageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView1.frame.origin.x, lableB.frame.origin.y + 200, 98, 100)];
    self.ZXImageView4.tag = 10004;
    self.ZXImageView4.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapZX4 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView4 addGestureRecognizer:tapZX4];
    self.ZXImageView4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView4];
    self.ZXLable4 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView4.frame.origin.x, self.ZXImageView4.frame.origin.y + self.ZXImageView4.frame.size.height, self.ZXImageView4.frame.size.width, 30)];
    self.ZXLable4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable4];
    [tapZX4 release];
    [_ZXImageView4 release];
    [_ZXLable4 release];
    
    self.ZXImageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView2.frame.origin.x, lableB.frame.origin.y + 200, 98, 100)];
    self.ZXImageView5.tag = 10005;
    self.ZXImageView5.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapZX5 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView5 addGestureRecognizer:tapZX5];
    self.ZXImageView5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView5];
    self.ZXLable5 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView5.frame.origin.x, self.ZXImageView5.frame.origin.y + self.ZXImageView5.frame.size.height, self.ZXImageView5.frame.size.width, 30)];
    self.ZXLable5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable5];
    [tapZX5 release];
    [_ZXImageView5 release];
    [_ZXLable5 release];
    
    self.ZXImageView6 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView3.frame.origin.x, lableB.frame.origin.y + 200, 98, 100)];
    self.ZXImageView6.tag = 10006;
    self.ZXImageView6.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapZX6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.ZXImageView6 addGestureRecognizer:tapZX6];
    self.ZXImageView6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXImageView6];
    self.ZXLable6 = [[UILabel alloc] initWithFrame:CGRectMake(self.ZXImageView6.frame.origin.x, self.ZXImageView6.frame.origin.y + self.ZXImageView6.frame.size.height, self.ZXImageView6.frame.size.width, 30)];
    self.ZXLable6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.ZXLable6];
    [tapZX6 release];
    [_ZXImageView6 release];
    [_ZXLable6 release];
    
    [lableB release];
    
    UILabel *lableC = [[UILabel alloc] initWithFrame:CGRectMake(0, lableB.frame.origin.y + lableB.frame.size.height + 20, self.frame.size.width, 350)];
    lableC.backgroundColor = [UIColor whiteColor];
    [self addSubview:lableC];
    UILabel *DTlable = [[UILabel alloc] initWithFrame:CGRectMake(lableC.frame.origin.x + 10, lableC.frame.origin.y + 10, 100, 30)];
    DTlable.backgroundColor = [UIColor whiteColor];
    DTlable.text = @"电台";
    [self addSubview:DTlable];
    [DTlable release];
    UIButton *buttonC = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonC.tag = 1006;
    buttonC.frame = CGRectMake(315, lableC.frame.origin.y + 10, 50, 30);
    buttonC.backgroundColor = [UIColor whiteColor];
    [buttonC setTitle:@"更多>>" forState:UIControlStateNormal];
    [buttonC setTitleColor:[UIColor colorWithRed:218 / 255.0 green:26 / 255.0 blue:24 / 255.0 alpha:1] forState:UIControlStateNormal];
    buttonC.titleLabel.font = [UIFont systemFontOfSize:15];
    [buttonC addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:buttonC];

    
    self.DTImageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, lableC.frame.origin.y + 50, 98, 100)];
    self.DTImageView1.tag = 10011;
    self.DTImageView1.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView1 addGestureRecognizer:tapDT1];
    self.DTImageView1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView1];
    self.DTLable1 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView1.frame.origin.x, self.DTImageView1.frame.origin.y + self.DTImageView1.frame.size.height, self.DTImageView1.frame.size.width, 30)];
    self.DTLable1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable1];
    [tapDT1 release];
    [_DTImageView1 release];
    [_DTLable1 release];
    
    self.DTImageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20, lableC.frame.origin.y + 50, 98, 100)];
    self.DTImageView2.tag = 10012;
    self.DTImageView2.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView2 addGestureRecognizer:tapDT2];
    self.DTImageView2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView2];
    self.DTLable2 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView2.frame.origin.x, self.DTImageView2.frame.origin.y + self.DTImageView2.frame.size.height, self.DTImageView2.frame.size.width, 30)];
    self.DTLable2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable2];
    [tapDT2 release];
    [_DTImageView2 release];
    [_DTLable2 release];
    
    self.DTImageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20 + 98 + 20, lableC.frame.origin.y + 50, 98, 100)];
    self.DTImageView3.tag = 10013;
    self.DTImageView3.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView3 addGestureRecognizer:tapDT3];
    self.DTImageView3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView3];
    self.DTLable3 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView3.frame.origin.x, self.DTImageView3.frame.origin.y + self.DTImageView3.frame.size.height, self.DTImageView3.frame.size.width, 30)];
    self.DTLable3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable3];
    [tapDT3 release];
    [_DTImageView3 release];
    [_DTLable3 release];
    
    self.DTImageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView1.frame.origin.x, lableC.frame.origin.y + 200, 98, 100)];
    self.DTImageView4.tag = 10014;
    self.DTImageView4.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT4 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView4 addGestureRecognizer:tapDT4];
    self.DTImageView4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView4];
    self.DTLable4 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView4.frame.origin.x, self.DTImageView4.frame.origin.y + self.DTImageView4.frame.size.height, self.DTImageView4.frame.size.width, 30)];
    self.DTLable4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable4];
    [tapDT4 release];
    [_DTImageView4 release];
    [_DTLable4 release];
    
    self.DTImageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView2.frame.origin.x, lableC.frame.origin.y + 200, 98, 100)];
    self.DTImageView5.tag = 10015;
    self.DTImageView5.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT5 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView5 addGestureRecognizer:tapDT5];
    self.DTImageView5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView5];
    self.DTLable5 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView5.frame.origin.x, self.DTImageView5.frame.origin.y + self.DTImageView5.frame.size.height, self.DTImageView5.frame.size.width, 30)];
    self.DTLable5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable5];
    [tapDT5 release];
    [_DTImageView5 release];
    [_DTLable5 release];
    
    self.DTImageView6 = [[UIImageView alloc] initWithFrame:CGRectMake(self.ZXImageView3.frame.origin.x, lableC.frame.origin.y + 200, 98, 100)];
    self.DTImageView6.tag = 10016;
    self.DTImageView6.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapDT6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.DTImageView6 addGestureRecognizer:tapDT6];
    self.DTImageView6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTImageView6];
    self.DTLable6 = [[UILabel alloc] initWithFrame:CGRectMake(self.DTImageView6.frame.origin.x, self.DTImageView6.frame.origin.y + self.DTImageView6.frame.size.height, self.DTImageView6.frame.size.width, 30)];
    self.DTLable6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.DTLable6];
    [tapDT6 release];
    [_DTImageView6 release];
    [_DTLable6 release];
    
    [lableC release];

    UILabel *lableD = [[UILabel alloc] initWithFrame:CGRectMake(0, lableC.frame.origin.y + lableC.frame.size.height +20, self.frame.size.width, 350)];
    lableD.backgroundColor = [UIColor whiteColor];
    [self addSubview:lableD];
    UILabel *YYlable = [[UILabel alloc] initWithFrame:CGRectMake(lableD.frame.origin.x + 10, lableD.frame.origin.y + 10, 100, 30)];
    YYlable.backgroundColor = [UIColor whiteColor];
    YYlable.text = @"音乐";
    [self addSubview:YYlable];
    [YYlable release];
    UIButton *buttonD = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonD.tag = 1007;
    buttonD.frame = CGRectMake(315, lableD.frame.origin.y + 10, 50, 30);
    buttonD.backgroundColor = [UIColor whiteColor];
    [buttonD setTitle:@"更多>>" forState:UIControlStateNormal];
    [buttonD setTitleColor:[UIColor colorWithRed:218 / 255.0 green:26 / 255.0 blue:24 / 255.0 alpha:1] forState:UIControlStateNormal];
    buttonD.titleLabel.font = [UIFont systemFontOfSize:15];
    [buttonD addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:buttonD];

    
    self.YYImageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, lableD.frame.origin.y + 50, 98, 100)];
    self.YYImageView1.tag = 30001;
    self.YYImageView1.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView1 addGestureRecognizer:tapYY1];
    self.YYImageView1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView1];
    self.YYLable1 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView1.frame.origin.x, self.YYImageView1.frame.origin.y + self.YYImageView1.frame.size.height, self.YYImageView1.frame.size.width, 30)];
    self.YYLable1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable1];
    [tapYY1 release];
    [_YYImageView1 release];
    [_YYLable1 release];
    
    self.YYImageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20, lableD.frame.origin.y + 50, 98, 100)];
    self.YYImageView2.tag = 30002;
    self.YYImageView2.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView2 addGestureRecognizer:tapYY2];
    self.YYImageView2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView2];
    self.YYLable2 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView2.frame.origin.x, self.YYImageView2.frame.origin.y + self.YYImageView2.frame.size.height, self.YYImageView2.frame.size.width, 30)];
    self.YYLable2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable2];
    [tapYY2 release];
    [_YYImageView2 release];
    [_YYLable2 release];
    
    self.YYImageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20 + 98 + 20, lableD.frame.origin.y + 50, 98, 100)];
    self.YYImageView3.tag = 30003;
    self.YYImageView3.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView3 addGestureRecognizer:tapYY3];
    self.YYImageView3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView3];
    self.YYLable3 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView3.frame.origin.x, self.YYImageView3.frame.origin.y + self.YYImageView3.frame.size.height, self.YYImageView3.frame.size.width, 30)];
    self.YYLable3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable3];
    [tapYY3 release];
    [_YYImageView3 release];
    [_YYLable3 release];
    
    self.YYImageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(self.YYImageView1.frame.origin.x, lableD.frame.origin.y + 200, 98, 100)];
    self.YYImageView4.tag = 30004;
    self.YYImageView4.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY4 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView4 addGestureRecognizer:tapYY4];
    self.YYImageView4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView4];
    self.YYLable4 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView4.frame.origin.x, self.YYImageView4.frame.origin.y + self.YYImageView4.frame.size.height, self.YYImageView4.frame.size.width, 30)];
    self.YYLable4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable4];
    [tapYY4 release];
    [_YYImageView4 release];
    [_YYLable4 release];
    
    self.YYImageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(self.YYImageView2.frame.origin.x, lableD.frame.origin.y + 200, 98, 100)];
    self.YYImageView5.tag = 30005;
    self.YYImageView5.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY5 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView5 addGestureRecognizer:tapYY5];
    self.YYImageView5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView5];
    self.YYLable5 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView5.frame.origin.x, self.YYImageView5.frame.origin.y + self.YYImageView5.frame.size.height, self.YYImageView5.frame.size.width, 30)];
    self.YYLable5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable5];
    [tapYY5 release];
    [_YYImageView5 release];
    [_YYLable5 release];
    
    self.YYImageView6 = [[UIImageView alloc] initWithFrame:CGRectMake(self.YYImageView3.frame.origin.x, lableD.frame.origin.y + 200, 98, 100)];
    self.YYImageView6.tag = 30006;
    self.YYImageView6.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapYY6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.YYImageView6 addGestureRecognizer:tapYY6];
    self.YYImageView6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYImageView6];
    self.YYLable6 = [[UILabel alloc] initWithFrame:CGRectMake(self.YYImageView6.frame.origin.x, self.YYImageView6.frame.origin.y + self.YYImageView6.frame.size.height, self.YYImageView6.frame.size.width, 30)];
    self.YYLable6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.YYLable6];
    [tapYY6 release];
    [_YYImageView6 release];
    [_YYLable6 release];
    
    [lableD release];

    UILabel *lableE = [[UILabel alloc] initWithFrame:CGRectMake(0, lableD.frame.origin.y + lableD.frame.size.height +20, self.frame.size.width, 350)];
    lableE.backgroundColor = [UIColor whiteColor];
    [self addSubview:lableE];
    UILabel *QGlable = [[UILabel alloc] initWithFrame:CGRectMake(lableE.frame.origin.x + 10, lableE.frame.origin.y + 10, 100, 30)];
    QGlable.backgroundColor = [UIColor whiteColor];
    QGlable.text = @"情感生活";
    [self addSubview:QGlable];
    [QGlable release];
    UIButton *buttonE = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonE.tag = 1008;
    buttonE.frame = CGRectMake(315, lableE.frame.origin.y + 10, 50, 30);
    buttonE.backgroundColor = [UIColor whiteColor];
    [buttonE setTitle:@"更多>>" forState:UIControlStateNormal];
    [buttonE setTitleColor:[UIColor colorWithRed:218 / 255.0 green:26 / 255.0 blue:24 / 255.0 alpha:1] forState:UIControlStateNormal];
    buttonE.titleLabel.font = [UIFont systemFontOfSize:15];
    [buttonE addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:buttonE];

    
    self.QGImageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, lableE.frame.origin.y + 50, 98, 100)];
    self.QGImageView1.tag = 40001;
    self.QGImageView1.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView1 addGestureRecognizer:tapQG1];
    self.QGImageView1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView1];
    self.QGLable1 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView1.frame.origin.x, self.QGImageView1.frame.origin.y + self.QGImageView1.frame.size.height, self.QGImageView1.frame.size.width, 30)];
    self.QGLable1.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable1];
    [tapQG1 release];
    [_QGImageView1 release];
    [_QGLable1 release];
    
    self.QGImageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20, lableE.frame.origin.y + 50, 98, 100)];
    self.QGImageView2.tag = 40002;
    self.QGImageView2.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView2 addGestureRecognizer:tapQG2];
    self.QGImageView2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView2];
    self.QGLable2 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView2.frame.origin.x, self.QGImageView2.frame.origin.y + self.QGImageView2.frame.size.height, self.QGImageView2.frame.size.width, 30)];
    self.QGLable2.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable2];
    [tapQG2 release];
    [_QGImageView2 release];
    [_QGLable2 release];
    
    self.QGImageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(20 + 98 + 20 + 98 + 20, lableE.frame.origin.y + 50, 98, 100)];
    self.QGImageView3.tag = 40003;
    self.QGImageView3.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView3 addGestureRecognizer:tapQG3];
    self.QGImageView3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView3];
    self.QGLable3 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView3.frame.origin.x, self.QGImageView3.frame.origin.y + self.QGImageView3.frame.size.height, self.QGImageView3.frame.size.width, 30)];
    self.QGLable3.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable3];
    [tapQG3 release];
    [_QGImageView3 release];
    [_QGLable3 release];
    
    self.QGImageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(self.QGImageView1.frame.origin.x, lableE.frame.origin.y + 200, 98, 100)];
    self.QGImageView4.tag = 40004;
    self.QGImageView4.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG4 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView4 addGestureRecognizer:tapQG4];
    self.QGImageView4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView4];
    self.QGLable4 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView4.frame.origin.x, self.QGImageView4.frame.origin.y + self.QGImageView4.frame.size.height, self.QGImageView4.frame.size.width, 30)];
    self.QGLable4.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable4];
    [tapQG4 release];
    [_QGImageView4 release];
    [_QGLable4 release];
    
    self.QGImageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(self.QGImageView2.frame.origin.x, lableE.frame.origin.y + 200, 98, 100)];
    self.QGImageView5.tag = 40005;
    self.QGImageView5.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG5 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView5 addGestureRecognizer:tapQG5];
    self.QGImageView5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView5];
    self.QGLable5 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView5.frame.origin.x, self.QGImageView5.frame.origin.y + self.QGImageView5.frame.size.height, self.QGImageView5.frame.size.width, 30)];
    self.QGLable5.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable5];
    [tapQG5 release];
    [_QGImageView5 release];
    [_QGLable5 release];
    
    self.QGImageView6 = [[UIImageView alloc] initWithFrame:CGRectMake(self.QGImageView3.frame.origin.x, lableE.frame.origin.y + 200, 98, 100)];
    self.QGImageView6.tag = 40006;
    self.QGImageView6.userInteractionEnabled = YES;
    UITapGestureRecognizer * tapQG6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapToPlay:)];
    [self.QGImageView6 addGestureRecognizer:tapQG6];
    self.QGImageView6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGImageView6];
    self.QGLable6 = [[UILabel alloc] initWithFrame:CGRectMake(self.QGImageView6.frame.origin.x, self.QGImageView6.frame.origin.y + self.QGImageView6.frame.size.height, self.QGImageView6.frame.size.width, 30)];
    self.QGLable6.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.QGLable6];
    [tapQG6 release];
    [_QGImageView6 release];
    [_QGLable6 release];
    
    [lableE release];
    

}
// 重写set方法
- (void)setDictionary:(NSMutableDictionary *)dictionary
{
    if (_dictionary != dictionary) {
        [_dictionary release];
        _dictionary = [dictionary retain];
    }
    NSMutableArray *ZXarray = [dictionary objectForKey:@"ZX"];
    Raido2 *raidio0 = [ZXarray objectAtIndex:0];
    self.ZXLable1.text = raidio0.title;
    self.ZXLable1.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable1.numberOfLines = 0;
    self.ZXLable1.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr = raidio0.coverWebSmall;
    NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url = [NSURL URLWithString:urlStrEncode];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView1.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView1.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView1.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView1.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView1.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidio1 = [ZXarray objectAtIndex:1];
    self.ZXLable2.text = raidio1.title;
    self.ZXLable2.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable2.numberOfLines = 0;
    self.ZXLable2.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr1 = raidio1.coverWebSmall;
    NSString *urlStrEncode1 = [urlStr1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url1 = [NSURL URLWithString:urlStrEncode1];
    NSMutableURLRequest *request1 = [NSMutableURLRequest requestWithURL:url1];
    [NSURLConnection sendAsynchronousRequest:request1 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView2.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView2.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView2.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView2.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView2.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidio2 = [ZXarray objectAtIndex:2];
    self.ZXLable3.text = raidio2.title;
    self.ZXLable3.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable3.numberOfLines = 0;
    self.ZXLable3.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr2 = raidio2.coverWebSmall;
    NSString *urlStrEncode2 = [urlStr2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url2 = [NSURL URLWithString:urlStrEncode2];
    NSMutableURLRequest *request2 = [NSMutableURLRequest requestWithURL:url2];
    [NSURLConnection sendAsynchronousRequest:request2 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView3.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView3.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView3.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView3.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView3.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidio3 = [ZXarray objectAtIndex:3];
    self.ZXLable4.text = raidio3.title;
    self.ZXLable4.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable4.numberOfLines = 0;
    self.ZXLable4.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr3 = raidio3.coverWebSmall;
    NSString *urlStrEncode3 = [urlStr3 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url3 = [NSURL URLWithString:urlStrEncode3];
    NSMutableURLRequest *request3 = [NSMutableURLRequest requestWithURL:url3];
    [NSURLConnection sendAsynchronousRequest:request3 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView4.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView4.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView4.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView4.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView4.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidio4 = [ZXarray objectAtIndex:4];
    self.ZXLable5.text = raidio4.title;
    self.ZXLable5.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable5.numberOfLines = 0;
    self.ZXLable5.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr4 = raidio4.coverWebSmall;
    NSString *urlStrEncode4 = [urlStr4 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url4 = [NSURL URLWithString:urlStrEncode4];
    NSMutableURLRequest *request4 = [NSMutableURLRequest requestWithURL:url4];
    [NSURLConnection sendAsynchronousRequest:request4 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView5.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView5.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView5.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView5.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView5.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidio5 = [ZXarray objectAtIndex:5];
    self.ZXLable6.text = raidio5.title;
    self.ZXLable6.font = [UIFont systemFontOfSize:10.0];
    self.ZXLable6.numberOfLines = 0;
    self.ZXLable6.textAlignment = NSTextAlignmentCenter;
    NSString *urlStr5 = raidio5.coverWebSmall;
    NSString *urlStrEncode5 = [urlStr5 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url5 = [NSURL URLWithString:urlStrEncode5];
    NSMutableURLRequest *request5 = [NSMutableURLRequest requestWithURL:url5];
    [NSURLConnection sendAsynchronousRequest:request5 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.ZXImageView6.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.ZXImageView6.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.ZXImageView6.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.ZXImageView6.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.ZXImageView6.layer.borderColor = [UIColor whiteColor].CGColor;
    }];

    NSMutableArray *DTarray = [dictionary objectForKey:@"DT"];
    Raido2 *raidoDT0 = [DTarray objectAtIndex:0];
    self.DTLable1.text = raidoDT0.title;
    self.DTLable1.font = [UIFont systemFontOfSize:10.0];
    self.DTLable1.numberOfLines = 0;
    self.DTLable1.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT0 = raidoDT0.coverWebSmall;
    NSString *urlStrEncodeDT0 = [urlStrDT0 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT0 = [NSURL URLWithString:urlStrEncodeDT0];
    NSMutableURLRequest *requestDT0 = [NSMutableURLRequest requestWithURL:urlDT0];
    [NSURLConnection sendAsynchronousRequest:requestDT0 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView1.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView1.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView1.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView1.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView1.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoDT1 = [DTarray objectAtIndex:1];
    self.DTLable2.text = raidoDT1.title;
    self.DTLable2.font = [UIFont systemFontOfSize:10.0];
    self.DTLable2.numberOfLines = 0;
    self.DTLable2.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT1 = raidoDT1.coverWebSmall;
    NSString *urlStrEncodeDT1 = [urlStrDT1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT1 = [NSURL URLWithString:urlStrEncodeDT1];
    NSMutableURLRequest *requestDT1 = [NSMutableURLRequest requestWithURL:urlDT1];
    [NSURLConnection sendAsynchronousRequest:requestDT1 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView2.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView2.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView2.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView2.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView2.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoDT2 = [DTarray objectAtIndex:2];
    self.DTLable3.text = raidoDT2.title;
    self.DTLable3.font = [UIFont systemFontOfSize:10.0];
    self.DTLable3.numberOfLines = 0;
    self.DTLable3.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT2 = raidoDT2.coverWebSmall;
    NSString *urlStrEncodeDT2 = [urlStrDT2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT2 = [NSURL URLWithString:urlStrEncodeDT2];
    NSMutableURLRequest *requestDT2 = [NSMutableURLRequest requestWithURL:urlDT2];
    [NSURLConnection sendAsynchronousRequest:requestDT2 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView3.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView3.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView3.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView3.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView3.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoDT3 = [DTarray objectAtIndex:3];
    self.DTLable4.text = raidoDT3.title;
    self.DTLable4.font = [UIFont systemFontOfSize:10.0];
    self.DTLable4.numberOfLines = 0;
    self.DTLable4.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT3 = raidoDT3.coverWebSmall;
    NSString *urlStrEncodeDT3 = [urlStrDT3 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT3 = [NSURL URLWithString:urlStrEncodeDT3];
    NSMutableURLRequest *requestDT3 = [NSMutableURLRequest requestWithURL:urlDT3];
    [NSURLConnection sendAsynchronousRequest:requestDT3 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView4.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView4.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView4.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView4.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView4.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoDT4 = [DTarray objectAtIndex:4];
    self.DTLable5.text = raidoDT4.title;
    self.DTLable5.font = [UIFont systemFontOfSize:10.0];
    self.DTLable5.numberOfLines = 0;
    self.DTLable5.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT4 = raidoDT4.coverWebSmall;
    NSString *urlStrEncodeDT4 = [urlStrDT4 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT4 = [NSURL URLWithString:urlStrEncodeDT4];
    NSMutableURLRequest *requestDT4 = [NSMutableURLRequest requestWithURL:urlDT4];
    [NSURLConnection sendAsynchronousRequest:requestDT4 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView5.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView5.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView5.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView5.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView5.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoDT5 = [DTarray objectAtIndex:5];
    self.DTLable6.text = raidoDT5.title;
    self.DTLable6.font = [UIFont systemFontOfSize:10.0];
    self.DTLable6.numberOfLines = 0;
    self.DTLable6.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrDT5 = raidoDT5.coverWebSmall;
    NSString *urlStrEncodeDT5 = [urlStrDT5 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlDT5 = [NSURL URLWithString:urlStrEncodeDT5];
    NSMutableURLRequest *requestDT5 = [NSMutableURLRequest requestWithURL:urlDT5];
    [NSURLConnection sendAsynchronousRequest:requestDT5 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.DTImageView6.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.DTImageView6.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.DTImageView6.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.DTImageView6.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.DTImageView6.layer.borderColor = [UIColor whiteColor].CGColor;
    }];

    NSMutableArray *YYarray = [dictionary objectForKey:@"YY"];
    Raido2 *raidoYY0 = [YYarray objectAtIndex:0];
    self.YYLable1.text = raidoYY0.title;
    self.YYLable1.font = [UIFont systemFontOfSize:10.0];
    self.YYLable1.numberOfLines = 0;
    self.YYLable1.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY0 = raidoYY0.coverWebSmall;
    NSString *urlStrEncodeYY0 = [urlStrYY0 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY0 = [NSURL URLWithString:urlStrEncodeYY0];
    NSMutableURLRequest *requestYY0 = [NSMutableURLRequest requestWithURL:urlYY0];
    [NSURLConnection sendAsynchronousRequest:requestYY0 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView1.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView1.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView1.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView1.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView1.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoYY1 = [YYarray objectAtIndex:1];
    self.YYLable2.text = raidoYY1.title;
    self.YYLable2.font = [UIFont systemFontOfSize:10.0];
    self.YYLable2.numberOfLines = 0;
    self.YYLable2.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY1 = raidoYY1.coverWebSmall;
    NSString *urlStrEncodeYY1 = [urlStrYY1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY1 = [NSURL URLWithString:urlStrEncodeYY1];
    NSMutableURLRequest *requestYY1 = [NSMutableURLRequest requestWithURL:urlYY1];
    [NSURLConnection sendAsynchronousRequest:requestYY1 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView2.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView2.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView2.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView2.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView2.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoYY2 = [YYarray objectAtIndex:2];
    self.YYLable3.text = raidoYY2.title;
    self.YYLable3.font = [UIFont systemFontOfSize:10.0];
    self.YYLable3.numberOfLines = 0;
    self.YYLable3.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY2 = raidoYY2.coverWebSmall;
    NSString *urlStrEncodeYY2 = [urlStrYY2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY2 = [NSURL URLWithString:urlStrEncodeYY2];
    NSMutableURLRequest *requestYY2 = [NSMutableURLRequest requestWithURL:urlYY2];
    [NSURLConnection sendAsynchronousRequest:requestYY2 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView3.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView3.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView3.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView3.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView3.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoYY3 = [YYarray objectAtIndex:3];
    self.YYLable4.text = raidoYY3.title;
    self.YYLable4.font = [UIFont systemFontOfSize:10.0];
    self.YYLable4.numberOfLines = 0;
    self.YYLable4.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY3 = raidoYY3.coverWebSmall;
    NSString *urlStrEncodeYY3 = [urlStrYY3 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY3 = [NSURL URLWithString:urlStrEncodeYY3];
    NSMutableURLRequest *requestYY3 = [NSMutableURLRequest requestWithURL:urlYY3];
    [NSURLConnection sendAsynchronousRequest:requestYY3 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView4.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView4.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView4.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView4.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView4.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoYY4 = [YYarray objectAtIndex:4];
    self.YYLable5.text = raidoYY4.title;
    self.YYLable5.font = [UIFont systemFontOfSize:10.0];
    self.YYLable5.numberOfLines = 0;
    self.YYLable5.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY4 = raidoYY4.coverWebSmall;
    NSString *urlStrEncodeYY4 = [urlStrYY4 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY4 = [NSURL URLWithString:urlStrEncodeYY4];
    NSMutableURLRequest *requestYY4 = [NSMutableURLRequest requestWithURL:urlYY4];
    [NSURLConnection sendAsynchronousRequest:requestYY4 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView5.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView5.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView5.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView5.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView5.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoYY5 = [YYarray objectAtIndex:5];
    self.YYLable6.text = raidoYY5.title;
    self.YYLable6.font = [UIFont systemFontOfSize:10.0];
    self.YYLable6.numberOfLines = 0;
    self.YYLable6.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrYY5 = raidoYY5.coverWebSmall;
    NSString *urlStrEncodeYY5 = [urlStrYY5 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlYY5 = [NSURL URLWithString:urlStrEncodeYY5];
    NSMutableURLRequest *requestYY5 = [NSMutableURLRequest requestWithURL:urlYY5];
    [NSURLConnection sendAsynchronousRequest:requestYY5 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.YYImageView6.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.YYImageView6.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.YYImageView6.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.YYImageView6.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.YYImageView6.layer.borderColor = [UIColor whiteColor].CGColor;
    }];

    NSMutableArray *QGarray = [dictionary objectForKey:@"QG"];
    Raido2 *raidoQG0 = [QGarray objectAtIndex:0];
    self.QGLable1.text = raidoQG0.title;
    self.QGLable1.font = [UIFont systemFontOfSize:10.0];
    self.QGLable1.numberOfLines = 0;
    self.QGLable1.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG0 = raidoQG0.coverWebSmall;
    NSString *urlStrEncodeQG0 = [urlStrQG0 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG0 = [NSURL URLWithString:urlStrEncodeQG0];
    NSMutableURLRequest *requestQG0 = [NSMutableURLRequest requestWithURL:urlQG0];
    [NSURLConnection sendAsynchronousRequest:requestQG0 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView1.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView1.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView1.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView1.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView1.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoQG1 = [QGarray objectAtIndex:1];
    self.QGLable2.text = raidoQG1.title;
    self.QGLable2.font = [UIFont systemFontOfSize:10.0];
    self.QGLable2.numberOfLines = 0;
    self.QGLable2.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG1 = raidoQG1.coverWebSmall;
    NSString *urlStrEncodeQG1 = [urlStrQG1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG1 = [NSURL URLWithString:urlStrEncodeQG1];
    NSMutableURLRequest *requestQG1 = [NSMutableURLRequest requestWithURL:urlQG1];
    [NSURLConnection sendAsynchronousRequest:requestQG1 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView2.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView2.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView2.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView2.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView2.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoQG2 = [QGarray objectAtIndex:2];
    self.QGLable3.text = raidoQG2.title;
    self.QGLable3.font = [UIFont systemFontOfSize:10.0];
    self.QGLable3.numberOfLines = 0;
    self.QGLable3.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG2 = raidoQG2.coverWebSmall;
    NSString *urlStrEncodeQG2 = [urlStrQG2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG2 = [NSURL URLWithString:urlStrEncodeQG2];
    NSMutableURLRequest *requestQG2 = [NSMutableURLRequest requestWithURL:urlQG2];
    [NSURLConnection sendAsynchronousRequest:requestQG2 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView3.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView3.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView3.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView3.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView3.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoQG3 = [QGarray objectAtIndex:3];
    self.QGLable4.text = raidoQG3.title;
    self.QGLable4.font = [UIFont systemFontOfSize:10.0];
    self.QGLable4.numberOfLines = 0;
    self.QGLable4.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG3 = raidoQG3.coverWebSmall;
    NSString *urlStrEncodeQG3 = [urlStrQG3 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG3 = [NSURL URLWithString:urlStrEncodeQG3];
    NSMutableURLRequest *requestQG3 = [NSMutableURLRequest requestWithURL:urlQG3];
    [NSURLConnection sendAsynchronousRequest:requestQG3 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView4.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView4.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView4.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView4.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView4.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoQG4 = [QGarray objectAtIndex:4];
    self.QGLable5.text = raidoQG4.title;
    self.QGLable5.font = [UIFont systemFontOfSize:10.0];
    self.QGLable5.numberOfLines = 0;
    self.QGLable5.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG4 = raidoQG4.coverWebSmall;
    NSString *urlStrEncodeQG4 = [urlStrQG4 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG4 = [NSURL URLWithString:urlStrEncodeQG4];
    NSMutableURLRequest *requestQG4 = [NSMutableURLRequest requestWithURL:urlQG4];
    [NSURLConnection sendAsynchronousRequest:requestQG4 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView5.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView5.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView5.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView5.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView5.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    
    Raido2 *raidoQG5 = [QGarray objectAtIndex:5];
    self.QGLable6.text = raidoQG5.title;
    self.QGLable6.font = [UIFont systemFontOfSize:10.0];
    self.QGLable6.numberOfLines = 0;
    self.QGLable6.textAlignment = NSTextAlignmentCenter;
    NSString *urlStrQG5 = raidoQG5.coverWebSmall;
    NSString *urlStrEncodeQG5 = [urlStrQG5 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *urlQG5 = [NSURL URLWithString:urlStrEncodeQG5];
    NSMutableURLRequest *requestQG5 = [NSMutableURLRequest requestWithURL:urlQG5];
    [NSURLConnection sendAsynchronousRequest:requestQG5 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *image = [UIImage imageWithData:data];
        self.QGImageView6.image = image;
        // 设置图片圆角
        // 1. 设置有图片边框为隐藏状态
        self.QGImageView6.layer.masksToBounds = YES;
        // 2. 设置图片圆角
        self.QGImageView6.layer.cornerRadius = 50;
        // 3. 设置边框宽度
        self.QGImageView6.layer.borderWidth = 2;
        // 4. 设置边框颜色
        self.QGImageView6.layer.borderColor = [UIColor whiteColor].CGColor;
    }];
    

}
- (void)setArray:(NSMutableArray *)array
{
    if (_array != array) {
        [_array release];
        _array = [array retain];
    }
    // 获取图片 添加到数组中
    self.picArray = [NSMutableArray array];
    Raido1 *raido = [_array objectAtIndex:0];
    NSString *urlStr = raido.pic;
    NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url = [NSURL URLWithString:urlStrEncode];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
    
        UIImage *image = [UIImage imageWithData:data];
        [self.picArray addObject:image];
        self.imageView2.image = image;
        self.imageView5.image = image;
    }];
    Raido1 *raido1 = [_array objectAtIndex:1];
    NSString *urlStr1 = raido1.pic;
    NSString *urlStrEncode1 = [urlStr1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url1 = [NSURL URLWithString:urlStrEncode1];
    NSMutableURLRequest *request1 = [NSMutableURLRequest requestWithURL:url1];
    [NSURLConnection sendAsynchronousRequest:request1 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        
        UIImage *image = [UIImage imageWithData:data];
        [self.picArray addObject:image];
        self.imageView3.image = image;
    }];
    Raido1 *raido2 = [_array objectAtIndex:2];
    NSString *urlStr2 = raido2.pic;
    NSString *urlStrEncode2 = [urlStr2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url2 = [NSURL URLWithString:urlStrEncode2];
    NSMutableURLRequest *request2 = [NSMutableURLRequest requestWithURL:url2];
    [NSURLConnection sendAsynchronousRequest:request2 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        
        UIImage *image = [UIImage imageWithData:data];
        [self.picArray addObject:image];
        self.imageView4.image = image;
        self.imageView1.image = image;
    }];
//    Raido1 *raido3 = [_array objectAtIndex:3];
//    NSString *urlStr3 = raido3.pic;
//    NSString *urlStrEncode3 = [urlStr3 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
//    NSURL *url3 = [NSURL URLWithString:urlStrEncode3];
//    NSMutableURLRequest *request3 = [NSMutableURLRequest requestWithURL:url3];
//    [NSURLConnection sendAsynchronousRequest:request3 queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
//        
//        UIImage *image = [UIImage imageWithData:data];
//        [self.picArray addObject:image];
//        self.imageView5.image = image;
//        self.imageView1.image = image;
//    }];
}
- (void)setArrayButton:(NSMutableArray *)arrayButton
{
    if (_arrayButton != arrayButton) {
        [_arrayButton release];
        _arrayButton = [arrayButton retain];
    }
    
    // 获取button图片
    for (Raido1Button *raido in arrayButton) {
        if ([raido.title isEqualToString:@"最新资讯"]) {
            NSString *urlStr = raido.coverPath;
            NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
            NSURL *url = [NSURL URLWithString:urlStrEncode];
            NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
            [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
                
                UIImage *image = [UIImage imageWithData:data];
                [self.button1 setImage:image forState:UIControlStateNormal];
            }];
        }
        if ([raido.title isEqualToString:@"电台"]) {
            NSString *urlStr = raido.coverPath;
            NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
            NSURL *url = [NSURL URLWithString:urlStrEncode];
            NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
            [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
                
                UIImage *image = [UIImage imageWithData:data];
                [self.button2 setImage:image forState:UIControlStateNormal];
            }];
        }
        if ([raido.title isEqualToString:@"音乐"]) {
            NSString *urlStr = raido.coverPath;
            NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
            NSURL *url = [NSURL URLWithString:urlStrEncode];
            NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
            [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
                
                UIImage *image = [UIImage imageWithData:data];
                [self.button3 setImage:image forState:UIControlStateNormal];
            }];
        }
        if ([raido.title isEqualToString:@"情感生活"]) {
            NSString *urlStr = raido.coverPath;
            NSString *urlStrEncode = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
            NSURL *url = [NSURL URLWithString:urlStrEncode];
            NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
            [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
                
                UIImage *image = [UIImage imageWithData:data];
                [self.button4 setImage:image forState:UIControlStateNormal];
            }];
        }
    }
}
// 添加定时器执行方法
- (void)changeImage
{
    CGFloat x = self.myScrollView.contentOffset.x;
    CGFloat y = self.myScrollView.contentOffset.y;
    if (x < 375 * 3 && x >= 375) {
        [self.myScrollView setContentOffset: CGPointMake(x + 375, y) animated:YES];
        self.myPageControll.currentPage = self.myScrollView.contentOffset.x / 375;
    } else if (x == 375 * 3) {
        [self.myScrollView  setContentOffset:CGPointMake(375, y) animated:YES];
        self.myPageControll.currentPage = 0;
    }
}
// 横scrollview上imageview 的 tap 方法
- (void)tapAction:(UITapGestureRecognizer *)tap
{
    [self.rotateView.layer removeAllAnimations];
    NSInteger tag = tap.view.tag - 2000;
    [self.imageViewDelegate imageViewTap:tag];
}
// 触摸推荐上的imageview 的 tap方法
- (void)tapToPlay:(UIGestureRecognizer *)tap
{
    [[PlayerViewController sharePlayerDataHandel] streamerStop];
    [PlayerViewController sharePlayerDataHandel].streamer = nil;
    // 获取点击的图片的播放url
    if (tap.view.tag < 10010 && tap.view.tag > 10000) {
        NSMutableArray *array = [self.dictionary objectForKey:@"ZX"];
        [PlayerViewController sharePlayerDataHandel].raido2 = [array objectAtIndex:tap.view.tag - 10001];
//            NSLog(@"tupian111  %@", [PlayerViewController sharePlayerDataHandel].raido2.title);
        [[PlayerViewController sharePlayerDataHandel] buttonPressed];
    } else if (tap.view.tag >+ 10010 && tap.view.tag < 10020) {
        NSMutableArray *array = [self.dictionary objectForKey:@"DT"];
        [PlayerViewController sharePlayerDataHandel].raido2 = [array objectAtIndex:tap.view.tag - 10011];
        [[PlayerViewController sharePlayerDataHandel] buttonPressed];

    } else if (tap.view.tag > 30000 && tap.view.tag < 40000) {
        NSMutableArray *array = [self.dictionary objectForKey:@"YY"];
        [PlayerViewController sharePlayerDataHandel].raido2 = [array objectAtIndex:tap.view.tag - 30001];
        [[PlayerViewController sharePlayerDataHandel] buttonPressed];

    } else if (tap.view.tag > 40000 && tap.view.tag < 50000) {
        NSMutableArray *array = [self.dictionary objectForKey:@"QG"];
        [PlayerViewController sharePlayerDataHandel].raido2 = [array objectAtIndex:tap.view.tag - 40001];
        [[PlayerViewController sharePlayerDataHandel] buttonPressed];
    }
    
//    NSLog(@"tupian222  %@", [PlayerViewController sharePlayerDataHandel].raido2.title);
    // tap事件 旋转和播放音频
    if ([tap.view isEqual:self.rotateView]) {
        if (self.type == 0) {
            CABasicAnimation *basicAnimation2 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
            basicAnimation2.fromValue = [NSNumber numberWithInt:0];
            basicAnimation2.toValue = [NSNumber numberWithInt:M_PI * 2];
            [basicAnimation2 setDuration:10];
            [basicAnimation2 setRepeatCount:NSIntegerMax];
            [tap.view.layer addAnimation:basicAnimation2 forKey:@"rotation"];
            self.type = 1;
            self.rotateView = tap.view;
            // 播放音频
            [[PlayerViewController sharePlayerDataHandel] buttonPressed];
            
        }else{
            [tap.view.layer removeAnimationForKey:@"rotation"];
            self.type = 0;
            [[PlayerViewController sharePlayerDataHandel] streamerStop];
        }
    }else{
        [[PlayerViewController sharePlayerDataHandel] streamerStop];
        [self.rotateView.layer removeAnimationForKey:@"rotation"];
        CABasicAnimation *basicAnimation2 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
        basicAnimation2.fromValue = [NSNumber numberWithInt:0];
        basicAnimation2.toValue = [NSNumber numberWithInt:M_PI * 2];
        [basicAnimation2 setDuration:10];
        [basicAnimation2 setRepeatCount:NSIntegerMax];
        [tap.view.layer addAnimation:basicAnimation2 forKey:@"rotation"];
        self.type = 1;
        self.rotateView = tap.view;
    
        [[PlayerViewController sharePlayerDataHandel] buttonPressed];
    }
    
}

// button点击方法
- (void)buttonAction:(UIButton *)button
{
    self.tag = button.tag;
    [self.myDelegate pushToConllectionViewController:self.tag - 1000];
}

// 横排scrollview实现协议方法
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
    if (scrollView.contentOffset.x <= 0) {
        scrollView.contentOffset = CGPointMake(self.frame.size.width * 3, 0);
//        self.myPageControll.currentPage = scrollView.contentOffset.x / 375 - 1;
    }
    if (scrollView.contentOffset.x >= self.frame.size.width * 4) {
        scrollView.contentOffset = CGPointMake(self.frame.size.width, 0);
//        self.myPageControll.currentPage = scrollView.contentOffset.x / 375 - 1;
    }
    self.myPageControll.currentPage = scrollView.contentOffset.x / 375 - 1;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
